<?php
namespace app\index\controller;
use think\Db;
class Customization extends Base{
    public function customization(){
    	$customization_banner=Db::name('customization_banner')->where('id',1)->find();
        $customization_title=Db::name('customizations_title')->where('id',1)->find();
        $headquarters_branches=Db::name('headquarters_branches')->order('sort desc')->select();
        $customizations=Db::name('customizations')->order('sort desc')->select();
        $guarantee_advantages_title=Db::name('guarantee_advantages_title')->where('id',1)->find();
        $guarantee_advantages=Db::name('guarantee_advantages')->order('sort desc')->select();
        $partners_title=Db::name('partners_title')->where('id',1)->find();
        $cases=Db::name('cases')->where('type',1)->order('sort desc')->limit(6)->select();
        $others=Db::name('others')->where('state',1)->order('sort desc')->select();
        $this->assign('system_set',$this->system_set());
		$this->assign('customization_banner',$customization_banner);
        $this->assign('customization_title',$customization_title);
        $this->assign('tmdurl',$this->request->domain());
        $this->assign('headquarters_branches',$headquarters_branches);
        $this->assign('customizations',$customizations);
        $this->assign('others',$others);
        $this->assign('guarantee_advantages_title',$guarantee_advantages_title);
        $this->assign('guarantee_advantages',$guarantee_advantages);
        $this->assign('partners_title',$partners_title);
        $this->assign('cases',$cases);
        return $this->fetch();
    }
}
